//
//  HomeViewController.h
//  DreamRoomage
//
//  Created by wjy on 15/9/7.
//  Copyright (c) 2015年 wjy. All rights reserved.
//

#import "UIButton+Init.h"

@implementation UIButton (Init)


+ (instancetype)buttonWithFrame:(CGRect)frame type:(UIButtonType)type title:(NSString *)title titleColor:(UIColor *)color target:(id)target action:(SEL)action
{
    UIButton *b = [UIButton buttonWithType:type];
    b.frame = frame;
    [b setTitle:title forState:(UIControlStateNormal)];
    [b setTitleColor:color forState:(UIControlStateNormal)];
    [b addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
    return b;
}







@end
